<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="caseForm" method="post">
		<input type="hidden" name="idBgt" id="idBgt" value="">
		<input type="hidden" name="checkType" value="">
		<input type="hidden" name="dealType" value="">
		<input type="hidden" name="distributeStatus" value="">
		<table class="autable">
			<c:if test="${param.update eq 'true'}">
			<tr>
				<td class="autd1">案件编号：</td>
				<td class="autd2"><input name="caseNo" readonly="readonly" style="background-color: #ccc;"/></td>
				<!-- 
				<td class="autd1">报案时间：</td>
				<td class="autd2"><input name="alarmDate" readonly="readonly" style="background-color: #ccc;"/></td>	
				 -->		
			</tr>
			</c:if>
			<tr>
				<td class="autd1">报警人：</td>
				<td class="autd2"><input name="alarmName" class="easyui-validatebox" type="text" value="匿名" onfocus="if(value =='匿名'){value =''}" onblur="if(value ==''){value='匿名'}"/></td>
				<td class="autd1">性别：</td>
				<td class="autd2">
					<select class="easyui-combobox" name="sex" panelHeight="auto" style="width:150px;" editable="false">
						<option value="">请选择</option>
						<option value="男">男</option>
						<option value="女">女</option>
					</select>
				</td>			
			</tr>
			<tr>
				<td class="autd1">报警人电话：</td>
				<td class="autd2"><input name="alarmPhone" class="easyui-validatebox" required="true"><span class="red">*</span></td>
				<td class="autd1">报警人地址：</td>
				<td class="autd2"><input name="alarmAddress" class="easyui-validatebox"></td>
			</tr>
			<tr>
				<td class="autd1">案发地址：</td>
				<td class="autd2"><input name="caseAddress" class="easyui-validatebox"></td>
				<td class="autd1">是否危化车辆：</td>
				<td class="autd2">
					<select class="easyui-combobox" name="isDanger" panelHeight="auto" style="width:150px;" editable="false">
						<option value="2">否</option>
						<option value="1">是</option>
					</select>
				<span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">报警方式：</td>
				<td class="autd2">
					<select class="easyui-combobox" name="alarmWay" panelHeight="auto" style="width:150px;" editable="false">
						<option value="电话接入">电话接入</option>
						<option value="110指令">110指令</option>
						<option value="事后录入">事后录入</option>
					</select>
				</td>
				<td class="autd1">报警类型：</td>
				<td class="autd2">
					<select class="easyui-combobox" name="alarmType" panelHeight="auto" style="width:150px;" editable="false">
						<option value="交通事故">交通事故</option>
						<option value="其他">其他</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="autd1">出警单位：</td>
				<td class="autd2"><input name="outDept" id="outDept" style="width:150px;"></td>
				<td class="autd1">出警人：</td>
				<td class="autd2"><input name="outPerson" id="outPerson" style="width: 150px;"></td>
			</tr>
			<tr>
				<td class="autd1">报警时间：</td>
				<td class="autd2" colspan="3"><input name="alarmDateString" id="alarmDateString" style="width:150px;" required="true" /><span class="red">*</span>&nbsp;<span style='color: red'>例如:2012-10-20 12:20:30</span></td>
			</tr>
			<tr>
				<td class="autd1">案件概述：</td>
				<td class="autd2" colspan="3"><textarea name="caseContent" class="txtarea" style="height: 80px;width: 400px;"></textarea></td>
			</tr>
			<tr>
				<td class="autd1">出警情况：</td>
				<td class="autd2" colspan="3"><textarea name="remark" class="txtarea" style="height: 180px;width: 400px;"></textarea></td>
			</tr>
			
			<tr>
				<td class="autd3" colspan="4">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					<a href="#" id="btn-add" onclick="addOrUpdate('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
